<template>
<div id="maincontainer">
      <div class="newscard">
        <div class="on">
          <div class="left">
            <img src="#" alt="" />
          </div>
          <div class="right">
            <h4 class="title">希尔顿旗下酒店开启春游巡礼</h4>
            <p class="UpdateTime"><span>发布时间：</span>2022年4月13日</p>
            <p class="Author"><span>发布人：</span>跟我出门吃肉</p>
            <p class="LookCount">浏览量：1</p>
          </div>
        </div>
        <div class="newstext">
          &nbsp;&nbsp;&nbsp;Lorem ipsum dolor sit amet consectetur adipisicing
          elit. Odit perspiciatis voluptatum placeat sapiente sequi itaque ipsam
          eos dicta, quia, odio similique voluptatibus harum facilis tempora
          eveniet provident, ipsum culpa rerum.
        </div>
      </div>
    </div>

</template>

<script>
export default {
  props:['newsInfo'],   

  data() {
    return {
      navactive: "1",
    };
  },
};
</script>

<style  lang='scss' scoped>
/*新闻列表样式*/
#maincontainer {
  width: 98vw;
  margin: 0 auto;
  border-top: 0.5vw solid gray;
  border-bottom: 0.5vw solid gray;
}
.newscard {
  widows: 98vw;
  height: 40vw;
  border: 0.1vw solid #f5b400;
  border-radius: 3vw;
  margin: 1vw;
}
.on {
  height: 30vw;
  display: flex;
}
.left {
  width: 30vw;
  height: 30vw;
  display: flex;
  img{
    width: 30vw;
    display: inline-block;
    overflow: hidden;
    margin: 1vw;
    padding: 1vw;
    border-radius: 15%;
  }
}
.right {
  width: 60vw;
  height: 30vw;
  padding: 2vw;
  .title {
    font-size: 5vw;
    margin: 0 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  p{
    margin: 1vw;
    color: #646464;
    font-size: 2vw;
  }
  .UpdateTime{
    margin-top: 2vw;
  }
}
.newstext{
  padding: 2vw;
  font-size: 2vw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
</style>
